package com.thinkingstar.iads.projectcenter.controller;

import com.thinkingstar.iads.common.utils.InitSystemProperties;
import org.nutz.boot.starter.WebServletFace;
import org.nutz.ioc.loader.annotation.IocBean;

import javax.servlet.Servlet;
import java.io.File;

/**
 * 注册com.zhuozhengsoft.poserver.Server
 *
 */
@IocBean
public class PoServer implements WebServletFace {

    public String getName() {
        return "poserver";
    }

    public String getPathSpec() {
        return "/poserver.zz";
    }

    public String[] getPathSpecs() {
        return new String[] {getPathSpec(), "/sealsetup.exe", "/posetup.exe", "/pageoffice.js", "/jquery.min.js", "/pobstyle.css"};
    }

    public Servlet getServlet() {
        com.zhuozhengsoft.pageoffice.poserver.Server server = new com.zhuozhengsoft.pageoffice.poserver.Server();
        server.setSysPath(InitSystemProperties.getSystemPath()+ File.separator+"lic"+File.separator);
        return server;
    }

}
